#ifndef SPLVIEW_H
#define SPLVIEW_H

#include <QWidget>
#include <QPixmap>
#include <QSize>
#include <QList>
#include <QPaintEvent>

class QResizeEvent;
class spl;

class SplView : public QWidget
{
	Q_OBJECT

public:
	SplView(QWidget *parent = 0);
	void setAudioCounts(int counts);
	void setAudioValue(QString value);
	void setAudioValue(float value, int channel, const QColor color);
    void moveSpeaker();
    void reDraw();
	~SplView();

	void resizeEvent(QResizeEvent *);

private:
	QPixmap background;
	QPixmap speaker;
	QList<spl*> splList;
};

#endif // SPLVIEW_H
